package net.wangds.auth.module.impls.defaults;

import lombok.Getter;
import lombok.Setter;
import net.wangds.auth.module.Department;
import net.wangds.data.impl.DefaultTree;

import javax.persistence.Column;
import javax.persistence.Lob;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

@MappedSuperclass
public class DefaultDepartment extends DefaultTree<Department> implements Department {
    private static final long serialVersionUID = 0;
    /**
     * 部门图标.
     */
    @Getter
    @Setter
    @Column(length=2000)
    private String departmentAvatar;

    /**
     * 部门名称.
     */
    @Getter
    @Setter
    @Column(length=50)
    private String departmentName;

    /**
     * 部门描述.
     */
    @Getter
    @Setter
    @Lob
    @Column(columnDefinition = "text")
    private String departmentDesc;


    @Getter
    @Setter
    @Transient
    private String parentDepartmentName;

    /**
     * 排序权重.
     */
    @Getter
    @Setter
    @Column()
    private long orderWeight = 0;



}
